<?php

error_reporting(E_ALL);

include_once 'smartmysqlbase.php';
//include_once 'smartmysql.php';
$db = new SmartMySQLBase('localhost', 'root', 'asdf', 'sample_data');
//$db->cacheTimezone = 'asas';

$name = $db->escape("' OR 1=1 OR 'Otto'");
$sql = "SELECT * FROM `list1` WHERE `first_name` = '$name';";
echo $sql;
//$res = $db->fetchAll($sql, 10);

/*
echo '<pre>';
print_r($res);
echo '</pre>';
*/

//echo 'aaaaa';

?>